<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加内容</title>
<load href="__PUBLIC__/css/bootstrap.min.css" />
<import type='css' file="css.main" />
<load href="__PUBLIC__/js/jquery-1.9.1.min.js" />
<load href="__PUBLIC__/js/jquery-ui.min.js" />
<import type='js' file="js.main" />
<import type='js' file="js.setshowflag" />
<import type='js' file="js.moment" />
<import type='js' file="js.daterangepicker" />
<script type="text/javascript">
$(function(){
	$('#pro_starttime').daterangepicker({ singleDatePicker: true }, function(start, end, label) {
		console.log(start.toISOString(), end.toISOString(), label);
	});
})
</script>
<script type="text/javascript">
$(function(){
	$("select[name='video_type'] option").each(function(index, element) {
        if($(this).attr("value")=={$filmpro['video_type']}){
			$(this).attr("selected","selected").siblings().removeAttr("selected");
		}
    });	
	if({$filmpro['isc']}==1){
		$("input[name='isc']").attr("checked","checked");
	}else{
		$("input[name='isc']").removeAttr("checked");
	}
})
</script>
</head>

<body id="body">
<div class="main-frame">
	<div class="position">华人码 > 编辑电影</div>
	<!-- 图片资源开始 -->
	<div class="floatBackground" id="floatBackground" style="display: none;">
		<div class="bounced">
		<label class="closeImgResurces">X</label>
		<iframe id="imgResourcesiframe" src="{:rtrim(U('Upload/index'),'.html')}" width="750" height="465" frameborder="0" scrolling="auto"></iframe>
		</div>
	</div>
	<!-- 图片资源结束 -->
	<div class="addobject">
		<div class="obj-form">
			<form name="form1" id="form1" action="{:U('Film/feditpro')}" method="post" class="form-inline">
				<input type="hidden" name="hiddenid" value="{$filmpro.id}">
				<ul>
					<li>
						<label class="fl tle">标题：</label>
						<span class="fl cnt">
						<input name="title" class="form-control" placeholder="标题" value="{$filmpro.title}" style="width: 450px;"><em>*</em>
						</span>
					</li>
					<li>
						<label class="fl tle">视频封面：</label>
						<span class="fl cnt"><input name="thumbimg" id="thumbimg" value="{$filmpro.video_img}" class="form-control" placeholder="图片地址" style="width: 450px;"><a class="browse" f='thumbimg'>浏览···</a></span>
					</li>
					<li>
						<label class="fl tle">&nbsp;</label>
						<span class="fl cnt"><img src="{$filmpro.video_img}" width="200" /></span>
					</li>
					<li>
						<label class="fl tle">所属ID：</label>
				    	<span class="fl cnt">
					    	<select name="singger_info_id" class="template form-control">
					    		<volist name='singger_info_id' id='v'>
					    		<option value="{$v.id}"<if condition="$v['id'] eq $filmpro['singger_info_id']"> selected="selected"</if>>{$v.name}</option>
					    		</volist>
					    	</select>
				    	</span>
				    	
				    	<label class="fl tle">类型：</label>
				    	<span class="fl cnt">
					    	<select name="video_type" class="template form-control">
					    		{$video_type}
					    	</select>
				    	</span>
					</li>
					<li>
						<label class="fl tle">视频地址：</label>
						<span class="fl cnt">
						<input name="video_url" value="{$filmpro.video_url}" class="form-control" placeholder="视频地址" style="width: 450px;"><em>*</em>
						</span>
					</li>
				    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/UEditor/ueditor.config.js"></script>
				    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/UEditor/ueditor.all.min.js"> </script>
				    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/UEditor/lang/zh-cn/zh-cn.js"></script>
					<li>
						<label class="fl tle">简介：</label>
						<span class="fl cnt">
							<textarea name="content" id="editor" style="width: 900px; height:300px; overflow: hidden;">{$filmpro.content}</textarea>
							<script>var ue = UE.getEditor('editor');</script>
						</span>
					</li>

					<li><span class="dividerline"></span></li>
					
					<li>
						<label class="fl tle">扩展属性：</label>
						<input type="checkbox" value="1" name="isc" class="extendedattr"> 推荐
					</li>
					<li>
						<label class="fl tle">&nbsp;</label>
						<span class="fl cnt">
                             	发布人：<input name="issuer" class="txtlength200" style="width: 100px; margin-right:15px;" value="{$filmpro.issuer}" readonly="readonly">
                             	发布日期：<input name="add_time" class="txtlength200" style="width: 160px;" placeholder="发布日期" value="{:date('Y-m-d H:i:m')}">
						</span>
					</li>
					<li class="error" style="display:none;">
						<label class="fl tle">&nbsp;</label>
						<span class="fl cnt"><font>错误：此处显示错误提示</font></span>
					</li>
					<li class="submit">
						<label class="fl tle">&nbsp;</label>
						<span class="fl cnt"><input type="submit" value="确定修改" class="submitbtn" /></span>
					</li>
				</ul>
			</form>
		</div>
		<div class="obj-previewimg">
			<div class="instructions">
				<b>备注说明：</b><br>
				1、带有红色  “ * ” 项必填<br>
			</div>
		</div>
	</div>

</div>
</body>
</html>
